package cn.argentoaskia.crm.bean;

// Dao --> service
//       --> controller
public class Department {
    private Integer id;
    private String name;
    private Integer parentId;
    private String depPath;
    private Integer enabled;
    private Integer isParent;

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Department{");
        sb.append("id=").append(id);
        sb.append(", name='").append(name).append('\'');
        sb.append(", parentId=").append(parentId);
        sb.append(", depPath='").append(depPath).append('\'');
        sb.append(", enabled=").append(enabled);
        sb.append(", isParent=").append(isParent);
        sb.append('}');
        return sb.toString();
    }

    public Integer getId() {
        return id;
    }

    public Department setId(Integer id) {
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public Department setName(String name) {
        this.name = name;
        return this;
    }

    public Integer getParentId() {
        return parentId;
    }

    public Department setParentId(Integer parentId) {
        this.parentId = parentId;
        return this;
    }

    public String getDepPath() {
        return depPath;
    }

    public Department setDepPath(String depPath) {
        this.depPath = depPath;
        return this;
    }

    public Integer getEnabled() {
        return enabled;
    }

    public Department setEnabled(Integer enabled) {
        this.enabled = enabled;
        return this;
    }

    public Integer getIsParent() {
        return isParent;
    }

    public Department setIsParent(Integer isParent) {
        this.isParent = isParent;
        return this;
    }
}
